package cn.qayy.dto;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

import cn.qayy.service.Uploadable;
/***
 * 消息提示
 * @author jobs1127
 *
 */
public class MsgInfo implements Serializable,Uploadable{
	private static final long serialVersionUID = 1L;
	/**出错的字段**/
	private String err_field="";
	/**出错的标题**/
	private String err_title="";
	/**出错的消息提示**/
	private String err_msg="";
	/**出错的行**/
	private String err_num="";
	public String getErr_field() {
		return err_field;
	}
	public void setErr_field(String err_field) {
		this.err_field = err_field;
	}
	public String getErr_msg() {
		return err_msg;
	}
	public void setErr_msg(String err_msg) {
		this.err_msg = err_msg;
	}
	public String getErr_num() {
		return err_num;
	}
	public void setErr_num(String err_num) {
		this.err_num = err_num;
	}
	public String getErr_title() {
		return err_title;
	}
	public void setErr_title(String err_title) {
		this.err_title = err_title;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public MsgInfo() {
		super();
	}
	public MsgInfo(String err_field, String err_msg, String err_num) {
		super();
		this.err_field = err_field;
		this.err_msg = err_msg;
		this.err_num = err_num;
	}
	
	public MsgInfo(String err_field, String err_title, String err_msg, String err_num) {
		super();
		this.err_field = err_field;
		this.err_title = err_title;
		this.err_msg = err_msg;
		this.err_num = err_num;
	}
	@Override
	public Uploadable filter(Map<String, List<Uploadable>> map, Set<Uploadable> set, int num) {
		return null;
	}
	@Override
	public String toString() {
		return "操作失败 [填写错误=【" + err_field + "】, 出错标题=【" + err_title + "】, 提示=【" + err_msg + "】, 出错行号=【"
				+ err_num + "】]";
	}
	@Override
	public String flag() {
		return null;
	}
	
}
